// 清楚默认样式
@bg-color: #a8d4d2;

* {
    margin: 0;
    padding: 0;
    // 改变盒子模型计算方式
    box-sizing: border-box;
}

#main {
    width: 360px;
    height: 420px;
    background-color: @bg-color;
    margin: 100px auto;
    border: 10px solid rgb(80, 80, 80);
    border-radius: 10px;

    #stage {
        height: 304px;
        width: 304px;
        border: 2px solid black;
        margin: 20px auto;
        position: relative;

        // 蛇的样式
        #snake {
            div {
                width: 10px;
                height: 10px;
                background-color: #000;
                border: 1px solid @bg-color;
                position: absolute;
            }
        }

        &>#food {
            width: 10px;
            height: 10px;
            background-color: rgb(79, 163, 219);
            border: 1px solid @bg-color;
            position: absolute;
            left: 30px;
            top: 100px;
        }
    }

    #score-panel {
        color: black;
        font-weight: 500;
        font-size: 25px;
        display: flex;
        justify-content: space-between;
        margin: 20px 20px;

        div {
            display: flex;
        }
    }
}

// 隐藏
#dis {
    display: none;
}